﻿using HPIT_Library_Modal;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace HPIT_Library
{
    public partial class warning : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BindProcList();
        }
        public void BindProcList()
        {
            string memberName = txtName.Text.Trim();
            MemberModel memberModel = new MemberModel() { 
                MemberName=memberName
            };
            int totalCount = 0;
            List<member> list=  HPIT_Library_BLL.userManger.GetSelectProc(memberModel, AspNetPager1.CurrentPageIndex, AspNetPager1.PageSize,ref totalCount);
            AspNetPager1.RecordCount = totalCount;
            Repeater1.DataSource = list;
            Repeater1.DataBind();

        }

        protected void AspNetPager1_PageChanged(object sender, EventArgs e)
        {
            BindProcList();
        }
    }
}